package com.coderlin1.service;

import com.coderlin1.entities.Worker;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <Description> <br>
 *
 * @author Coder_Lin<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2021/08/03 14:27 <br>
 * @see com.coderlin1.service <br>
 */
public interface WorkerService {

    /**
     * 从数据库中查询出所有的worker信息
     * @return
     */
    List<Worker> listWorker();

    /**
     * 将上传的文件传入服务器本地，并且对文件根据时间戳进行重命名
     * @param worker
     * @param upLoadFile
     * @return
     */
    Integer addWorker(Worker worker, MultipartFile upLoadFile) throws IOException;
}
